<?php
/**
 * Created by PhpStorm.
 * User: 小蛮哼哼哼
 * Email: 243194993@qq.com
 * Date: 2022/1/4 0004
 * Time: 12:38
 * motto: 现在的努力是为了小时候吹过的牛逼！
 */

declare(strict_types=1);


namespace app\common\business;

use app\common\model\MallMembercardxz as ModelObj;
use think\Exception;

class Membercardxz extends Base
{

    /**
     * @var ModelObj
     */
    protected ModelObj $modelObj;

    /**
     *
     */
    public function __construct()
    {
        $this->modelObj = new ModelObj();
    }

    public function getMembercardxzInfo($id){
        try{
            $info =$this->modelObj->getModelByListToArray([['mcard_id','=',$id]],'*','create_time desc');
        }catch (\Exception $e){
            throw new Exception("查询失败");
        }
        return $info;
    }
}